package online.shenme.day13;

public class roundStr {


    public static void main(String[] args) {
        int[] arr=new int[1000000];
        long time0=System.currentTimeMillis();
        int[] temp=new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            temp [i]=arr[arr.length-1-i];
        }
        arr=temp;
        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
        }
       long time1=System.currentTimeMillis();
        System.out.println(time1-time0);
        for (int i = 0,j=arr.length-1; i < j; i++,j--) {
           int temp1=arr[i];
           arr[i]=arr[j];
           arr[j]=temp1;
        }
        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
        }
        long time2=System.currentTimeMillis();
        System.out.println(time2-time1);
    }
}
